package com.hj.gateway.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hj
 * @Date 2023/5/22
 * @Description:
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @PostMapping("/one")
    @SentinelResource
    public String one(){
        return "sentinel-one";
    }

}
